package com.subang.system.mapper;

import java.util.List;
import com.subang.system.domain.SysUserPointsDetail;

/**
 * 用户积分明细Mapper接口
 * 
 * @author subei
 * @date 2025-08-13
 */
public interface SysUserPointsDetailMapper 
{
    /**
     * 查询用户积分明细
     * 
     * @param id 用户积分明细主键
     * @return 用户积分明细
     */
    public SysUserPointsDetail selectSysUserPointsDetailById(Long id);

    /**
     * 查询用户积分明细列表
     * 
     * @param sysUserPointsDetail 用户积分明细
     * @return 用户积分明细集合
     */
    public List<SysUserPointsDetail> selectSysUserPointsDetailList(SysUserPointsDetail sysUserPointsDetail);

    /**
     * 新增用户积分明细
     * 
     * @param sysUserPointsDetail 用户积分明细
     * @return 结果
     */
    public int insertSysUserPointsDetail(SysUserPointsDetail sysUserPointsDetail);

    /**
     * 修改用户积分明细
     * 
     * @param sysUserPointsDetail 用户积分明细
     * @return 结果
     */
    public int updateSysUserPointsDetail(SysUserPointsDetail sysUserPointsDetail);

    /**
     * 删除用户积分明细
     * 
     * @param id 用户积分明细主键
     * @return 结果
     */
    public int deleteSysUserPointsDetailById(Long id);

    /**
     * 批量删除用户积分明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysUserPointsDetailByIds(Long[] ids);

    SysUserPointsDetail selectSysUserIntegralByUserId(Long userId);
}
